#pragma once
#include "CSprite.h"

#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600

class Object
{
protected:
	static unsigned int m_nCountObj;
public:
	Object();
	~Object();

	CSprite* m_Sprite;
	bool m_checkDie;
	RECT *m_ObRect;
	int m_nAndr; //position on map
	int m_nmovedCame;
	bool m_bIsfinish;
	int ID;

	virtual void LoadSprite(LPD3DXSPRITE);
	virtual void Render();
	virtual void Next();
	virtual void Update(int DeltaTime, int moveCame);
	virtual void Collision(Object* Ob){}
	virtual void Crawl(){}
	virtual bool moved_ob(){return false;}
	virtual void setRect(){}
	virtual void Die(){}
};